﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace lcmyjobs.Model
{
    public class email
    {
        private string _sendEmailAdd;
        private string _sendEmailPwd;
        private string _receiveEmailAdd;
        private string _title;
        private string _content;
        private FileStream _files = null; //附件文件流
        private int _port;
        private string _serverhost;


        /// <summary>
        /// Ｓmtp邮件服务器主机名
        /// </summary>
        public string serverhost
        {
            get { return _serverhost; }
            set { _serverhost = value; }
        }

        /// <summary>
        /// 端口号
        /// </summary>
        public int port
        {
            get { return _port; }
            set { _port = value; }
        }

        /// <summary>
        /// 附件文件流
        /// </summary>
        public FileStream files
        {
            get { return _files; }
            set { _files = value; }
        }

        /// <summary>
        /// 邮件正文内容
        /// </summary>
        public string content
        {
            get { return _content; }
            set { _content = value; }
        }
        /// <summary>
        /// 邮件主题
        /// </summary>
        public string title
        {
            get { return _title; }
            set { _title = value; }
        }


        /// <summary>
        /// 发件人邮箱地址列表(多个邮件地址用“,”隔开)
        /// </summary>
        public string sendEmailAdd
        {
            get { return _sendEmailAdd; }
            set { _sendEmailAdd = value; }
        }
        /// <summary>
        /// 发件人邮箱密码
        /// </summary>
        public string sendEmailPwd
        {
            get { return _sendEmailPwd; }
            set { _sendEmailPwd = value; }
        }
        /// <summary>
        /// 收件人邮箱地址
        /// </summary>
        public string receiveEmailAdd
        {
            get { return _receiveEmailAdd; }
            set { _receiveEmailAdd = value; }
        }
    }
}
